package com.huilan.hgt.mapper;

import com.huilan.hgt.entity.Attachment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huilan.hgt.util.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 附件表 Mapper 接口
 * </p>
 *
 * @author ghy
 * @since 2018-11-02
 */
public interface AttachmentMapper extends BaseMapper<Attachment> {

    /**
     * 根据邮件ID查询附件信息
     * @param emailId
     * @return
     */
    List<Attachment> queryAttachmentByEmailId(@Param("emailId") String emailId);

    /**
     * 查询所有附件
     * @param page
     * @param catalogueId
     * @return
     */
    List<Attachment> queryAttachmentList(@Param("page") PageUtil page, @Param("catalogueId") Integer catalogueId);
}
